home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2399 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: felix.teclink.net!usenet
  2. From: rad@teclink.net (rad)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Must I free my linked lists? (GCC)
  5. Date: 31 Jan 1996 02:14:33 GMT
  6. Organization: TECLink Internet Services: info@TECLink.Net
  7. Message-ID: <867.6603T1206T1431@teclink.net>
  8. References: <volker.0eqv@vb.franken.de>
  9. NNTP-Posting-Host: tc1_1.teclink.net
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12.  
  13. >Jochen Wiedmann (jochen@neckar-alb.de) wrote:
  14.  
  15. >: You can be sure, if
  16. >:
  17. >:       1.) You are using a version of malloc(), that isn't broken.
  18. >:           The malloc() coming with your C compiler can be assumed
  19. >:           to work fine.
  20.  
  21. >Probably all Amiga C libraries have a malloc() that frees all memory
  22. >after program termination, but no C compiler is required to do it.
  23.  
  24. The ANSI-C standard requires it.  Any C compiler that doesn't free malloc()
  25. memory on exit isn't worth a darn.
  26.  
  27. --------------------------------------------------------------------------
  28. - Richard Deken                   E-Mail: (personal)     rad@teclink.net -
  29. - VLSI design engineer                    (AuE business) rad@aue.com     -
  30. - Advanced Microelectronics       PGP public key available               -
  31. --------------------------------------------------------------------------
  32.  
  33.